<div class="user-ajax">
  <form id="user-reg">
    <input name="user_name" id="user_name" type="text" placeholder="用户名">
    <input name="user_password" id="user_password" type="password" placeholder="密码">
    <input name="reuser_password" id="reuser_password" type="password" placeholder="请再输入一次密码">
    {notempty name="GLOBALS['config']['user']['sys']['user_reg_email']"}
    <input value="reg" name="type" type="hidden"> 
    <input value="email" name="ac" type="hidden">              
    <input name="user_email" id="user_email" type="text" placeholder="邮箱">
    {/notempty}
    {notempty name="GLOBALS['config']['user']['sys']['user_reg_sms']"}
    <input value="reg" name="type" type="hidden"> 
    <input value="mobile" name="ac" type="hidden">
    <div class="send">
      <input name="to" id="to" type="text" placeholder="手机号码">
      <button id="sendsms">获取验证码</button>
    </div>
    <input id="code" name="code" type="text" placeholder="手机验证码">
    {/notempty}
    {notempty name="GLOBALS['config']['user']['sys']['user_verify']"}
    <div class="img-code">
      <input id="validate" name="validate" type="text" placeholder="图形验证码">
      <img class="validate-img" src="{:url('home/verify/index',array('t'=>time()))}">
    </div>
    {/notempty}
    <input value="1" name="agreement" type="hidden">
    <button type="button" id="reg-submit">注册</button>
    <div class="yes-user">有账号？去登录</div>
  </form>
  <div class="login-ico">
    <a class="qq pull-left" rel="nofollow" {notempty name="GLOBALS['config']['user']['api']['qq_appid']"}{notempty name="GLOBALS['config']['user']['api']['auth']"} href="{:zanpian_user_url('user/snslogin/qq')}" target="_self"{else/}id="addsns" data-id="qq"{/notempty}{/notempty}><i class="icon iconfont">&#xe73e;</i></a>
    <a class="weixin" rel="nofollow" {notempty name="GLOBALS['config']['user']['api']['weixin_appid']"}{notempty name="GLOBALS['config']['user']['api']['auth']"} href="{:zanpian_user_url('user/snslogin/weiqrcode')}" target="_self"{else/}id="addsns" data-id="weiqrcode"{/notempty}{/notempty}><i class="icon iconfont">&#xe73b;</i></a>
    <a class="weibo pull-right" rel="nofollow" {notempty name="GLOBALS['config']['user']['api']['weibo_appid']"}{notempty name="GLOBALS['config']['user']['api']['auth']"} href="{:zanpian_user_url('user/snslogin/weibo')}" target="_self"{else/}id="addsns" data-id="weibo"{/notempty}{/notempty}><i class="icon iconfont">&#xe73c;</i></a>
  </div>
</div>